﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Data.Common;
using System.Data.OleDb;

namespace K.DLBySelf
{
    public class DbBaseForAccess : IDbBase
    {
        public DbCommand CreateCommand()
        {
            return new OleDbCommand();
        }

        public DbConnection CreateConnection()
        {
            return new OleDbConnection();
        }

        public DbDataAdapter CreateDataAdapter()
        {
            return new OleDbDataAdapter();
        }

        public DbParameter CreateParameter()
        {
            return new OleDbParameter();
        }

        /// <summary>
        /// 构造函数
        /// </summary>
        public DbBaseForAccess()
        {
            DbHelper.Provider = this;
        }
    }
}
